var DJ = [{
		name: '徐州',
		value: 20
	}, {
		name: '大连',
		value: 17
	}, {
		name: '克拉玛依',
		value: 21
	}, {
		name: '谏壁',
		value: 73
	}, {
		name: '大同',
		value: 12
	}, {
		name: '福州',
		value: 8
	}, {
		name: '库车',
		value: 100
	}, {
		name: '延吉',
		value: 34
	}],
	GZP = [{
		name: '延吉',
		value: 70
	}, {
		name: '库车',
		value: 17
	}, {
		name: '大同',
		value: 30
	}, {
		name: '谏壁',
		value: 73
	}, {
		name: '克拉玛依',
		value: 10
	}, {
		name: '福州',
		value: 70
	}, {
		name: '大连',
		value: 22
	}, {
		name: '徐州',
		value: 34
	}]

function getData(name) {
	$('.rank-list-bar').each(function(item) {
		$('.rank-list-name').eq(item).text(name[item].name)
		$(this).animate({
			width: name[item].value * ($(".rank-list-border").width() - 4) / 100
		}, 1000);
		setTimeout(function() {
			$('.rank-list-num').eq(item).text(name[item].value);
			if(name[item].value >= 80) {
				$('.rank-list-num').eq(item).css({
					'right': '16px',
					'color': '#666'
				})
			} else {
				$('.rank-list-num').eq(item).css({
					'right': '-30px',
					'color': '#00dfff'
				})
			}
		}, 1000)
	})
}
getData(DJ);